﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;
using NHibernate.Criterion;
using pos.entity;

namespace pos.entity
{
	public abstract class IEntityUtil
	{
      /*  public abstract void add();
        public abstract void checkAdd();
        public abstract void checkUpdate();
        public abstract  DetachedCriteria DC { get; }
        public abstract  void ExecDataInsert();
        public abstract  void ExecDataInsertByQuery(DetachedCriteria dc);
        public abstract  void ExecDataUpdate(int rowNo);
        public abstract  void ExecHeadInsert();
        public abstract  bool Init(DetachedCriteria dc);
        public abstract  bool initByForm(System.Windows.Forms.Control.ControlCollection Controls);
        public abstract  System.Collections.IList List(DetachedCriteria dc);
        public abstract  bool showInForm(System.Windows.Forms.Control.ControlCollection Controls);
        public abstract  object uniqueResult(DetachedCriteria dc);
        public abstract  void update();*/

        public delegate void INSERTHEAD(int colNo, int width, string strValue);
        public delegate void INSERTROW(int rowNo, int colNo, string strValue);
        public delegate void UPDATEROW(int rowNo, int colNo, string strValue);
        protected INSERTHEAD m_insertHead;
        protected INSERTROW m_insertRow;
        protected UPDATEROW m_updateRow;
        public INSERTHEAD HeadInsert
        {
            get { return m_insertHead; }
            set { m_insertHead = value; }
        }


        public INSERTROW RowInsert
        {
            get { return m_insertRow; }
            set { m_insertRow = value; }
        }

 

        public UPDATEROW RowUpdate
        {
            get { return m_updateRow; }
            set { m_updateRow = value; }
        }
        
        
        

	}
}
